package com.breakfast.fun.ui.user.address;

import com.breakfast.fun.data.entity.user.Result;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by yukai on 16/9/15.
 */
public class AddAddressModel implements AddAddressContract.Model {
    @Override
    public Observable<Result> getAddAddressModel(@FieldMap Map<String, String> map) {

        return Api.getInstance().service
                .getModifyAddressModel(map)
                .compose(RxSchedulers.io_main());
    }
}
